/*
 * @author: sanbao
 * @Date: 2022-08-09 11:29:59
 */
import request from "../utils/request";
//
const getcharttrend = () => {
    // https://imooc-admin.lgdsunday.club/prod-api/chart/trend
    return request({
        url: 'chart/trend',
        method: 'GET',
    })
}
//
const getcharttimeamount = () => {
    // https://imooc-admin.lgdsunday.club/prod-api/chart/time/amount
    return request({
        url: 'chart/time/amount',
        method: 'GET',
    })
}
//
const chartsheets = (id: number) => {
    // https://imooc-admin.lgdsunday.club/prod-api/chart/sheets?regionId=1
    return request({
        url: `chart/sheets?regionId=${id}`,
        method: 'GET',
    })
}
//
const chartregions = () => {
    // https://imooc-admin.lgdsunday.club/prod-api/chart/regions
    return request({
        url: 'chart/regions',
        method: 'GET',
    })
}
export default {
    getcharttrend,
    getcharttimeamount,
    chartsheets,
    chartregions
}